<#include "../head_top.ftl">
        <title>
            JavaScript Compress, Compress JavaScript online.
        </title>
        <meta name="description" content="Tool for compress JavaScript online. Remove extra spaces and make it transfer more faster.">
        <meta name="keywords" content="JavaScript Compress, Compress JavaScript">
<#include "../head_down.ftl">
    
    <body>
		<#include "/template/common/navigator.ftl">
        <div class="container">
            <div class="row">
                <div class="span10">
                    <div id="listing-post-container">
						<h1>Compress JavaScript</h1>
						<p></p>
						<p></p>
						<p></p>		
						<p>Tool for compress JavaScript. Remove extra spaces and make it transfer more faster.</p>
						<form method="post" action="javascript_compress" id="form1">
							<table>							
								<tr>
									<td>
										JavaScript Content:
										<textarea cols="105" rows="15" name="content" id="content">${content!''}</textarea>
									</td>
								</tr>								
								<tr>
									<td align="center">
										<input type="button" value="Submit" onclick="doSubmit()"/>
									</td>
								</tr>
							</table>
						</form>
						Result:
						<textarea cols="105" rows="15" name="contentResult" readonly="readonly">${contentResult!''}</textarea>
                    </div>
                </div>
                <!--/span10 -->
                <#include "/template/tool/tool_right.ftl">
                <!--/.span4 -->
            </div>
            <!-- /.row -->
        </div>
        <!-- /container -->
		<#include "/template/common/tail.ftl">
    </body>
    <!-- end of body -->
	<script>
		String.prototype.trim=function()
		{
			 return this.replace(/^\s+/g,"").replace(/\s+$/g,"");
		}
		function doSubmit(action){
			if(document.getElementById("content").value.trim()==""){
				alert("JavaScript content is needed.");
				return;
			}else{
				document.getElementById("form1").submit();
			}	
		}
	</script>
</html>